extends Area2D
class_name ChangeSceneToArea

@export var next_scene:PackedScene

func _ready() -> void:
	body_entered.connect(change_to_scene)

func change_to_scene(body:Node2D):
	get_tree().change_scene_to_packed(next_scene)
